<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<canvas id="canvas" width="100" height="100" style="background: "></canvas>
</body>
<script>
    var canvas = document.querySelector("#canvas");
    var ctx = canvas.getContext("2d");
    ctx.fillStyle = "#6495ed";
    ctx.fillRect(0,0,100,100);
</script>
</html>